package com.baylor.server.business.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name = "video")
public class Video implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**主键*/
	private Long videoId;
	/**资源路径*/
	private String videoUrl;
	/**所属用户id*/
	private Long customerId;
    /**创建时间*/
    private Date createAt;
    /**开始时间*/
    private Date beginTime;
    /**结束时间*/
    private Date endTime;
    /**文件大小*/
    private Double fileSize;
    /**状态*/
    private Integer status;
    /***/
    /***/

	@Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="video_id")
	public Long getVideoId() {
		return videoId;
	}
	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

    @Column(name="video_url")
    public String getVideoUrl() {
        return videoUrl;
    }
    @Column(name="customer_id")
    public Long getCustomerId() {
        return customerId;
    }
    @Column(name="create_at")
    public Date getCreateAt() {
        return createAt;
    }
    @Column(name="begin_time")
    public Date getBeginTime() {
        return beginTime;
    }
    @Column(name="end_time")
    public Date getEndTime() {
        return endTime;
    }
    @Column(name="file_size")
    public Double getFileSize() {
        return fileSize;
    }

    @Column(name="status")
    public Integer getStatus() {
        return status;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setFileSize(Double fileSize) {
        this.fileSize = fileSize;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
